<template>
  <div>
    <basic-container>
      <avue-crud
          v-bind="bindVal"
          v-on="onEvent"
          :page.sync="page"
          v-model="startForm">
      </avue-crud>
    </basic-container>
  </div>
</template>

<script>
import startCrud from "@/mixins/start-crud.js"

export default startCrud({
      name: "dataRule",
      data() {
        return {
          drawerVisible: false,
          menuId: null,
        }
      },
      created() {
        this.searchParams.menuId = -10000000;
      },
      methods: {
        show(id) {
          this.menuId = id;
          this.drawerVisible = true;
          this.searchChange({}, null)
        },
        getListBefore() {
          this.searchParams.menuId = this.menuId;
        },
        handleClose() {
          this.drawerVisible = false;
          this.menuId = null;
          this.searchParams.menuId = -10000000
        },
        rowSaveBefore(row) {
          row.menuId = this.menuId
        }
      }
    },
    {
      name: "sys/dataRule",
    })
</script>

<style scoped>

</style>
